package com.mad.game.system;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.Toolkit;

public final class GameSystem {

	public static final int TARGET_FRAME_RATE = 60 ; 
	public static final int TARGET_DELTA_UPDATE_TIME = 1000 / TARGET_FRAME_RATE ; 
	
	public static final Dimension getScreenSize(){
		return Toolkit.getDefaultToolkit().getScreenSize();
	}
	
	public static final Point centerToScreen(Dimension size){
		return new Point(
				(int)(getScreenSize().getWidth() - size.getWidth()) / 2,
				(int)(getScreenSize().getHeight() - size.getHeight()) / 2
		);
	}
	
}
